import request from '@/utils/request'

// 查询会场列表
export function listPlace(query) {
  return request({
    url: '/place/list',
    method: 'get',
    params: query
  })
}

// 查询会场详细
export function getPlace(id) {
  return request({
    url: '/place/' + id,
    method: 'get'
  })
}

// 新增会场
export function addPlace(data) {
  return request({
    url: '/place',
    method: 'post',
    data: data
  })
}

// 修改会场
export function updatePlace(data) {
  return request({
    url: '/place',
    method: 'put',
    data: data
  })
}

// 删除会场
export function delPlace(id) {
  return request({
    url: '/place/' + id,
    method: 'delete'
  })
}

// 开启会场直播
export function startLive(data) {
  return request({
    url: '/place/live',
    method: 'post',
    data: data
  })
}
